package com.omega.common.utils;

import java.util.ArrayList;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.TreeMap;


public class Utils {
	
	private static Map<Integer, String> monthMap;
	
	public static Map<Integer, String> getMonthsMap(){
		monthMap = new TreeMap<Integer, String>();
		Calendar c = new GregorianCalendar();
		c.set(Calendar.DATE, 1);
		Locale locale = Locale.getDefault();
		monthMap.put(0, "Select a Month");
		for (int x = 1; x < 13; x++) {
			c.set(Calendar.MONTH, x-1);
			monthMap.put(x, c.getDisplayName(Calendar.MONTH, Calendar.LONG, locale));
		}
		return monthMap;
	}
	
	
	public static LinkedHashMap<Integer, String> getYearsMap() {
		LinkedHashMap<Integer, String>years = new LinkedHashMap<Integer, String>();
		years.put(0, "Select a Year");
		
		for (int x = Calendar.getInstance().get(Calendar.YEAR); x > 1900; x--) {
			years.put(x, String.valueOf(x));
		}
		return years;
	}
	
	
	public static void main(String args[]){
		List<Object> list = new ArrayList<Object>();
		list.add("gg");
		
		System.out.println(list);
	}
	

	

}
